(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=!0;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{enumerable:!0,get:getter})}};__webpack_require__.r=function(exports){if(typeof Symbol!=='undefined'&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:'Module'})}Object.defineProperty(exports,'__esModule',{value:!0})};__webpack_require__.t=function(value,mode){if(mode&1)value=__webpack_require__(value);if(mode&8)return value;if((mode&4)&&typeof value==='object'&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,'default',{enumerable:!0,value:value});if(mode&2&&typeof value!='string')for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module['default']}:function getModuleExports(){return module};__webpack_require__.d(getter,'a',getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=0)})({"./js/scripts_es6.js": /*!***************************!*\ !*** ./js/scripts_es6.js ***! \***************************/ /*! no exports provided */ (function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */"./node_modules/@babel/runtime/helpers/toConsumableArray.js");var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */"./node_modules/@babel/runtime/helpers/slicedToArray.js");var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(/*! @babel/runtime/helpers/defineProperty */"./node_modules/@babel/runtime/helpers/defineProperty.js");var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__);var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(/*! @babel/runtime/regenerator */"./node_modules/@babel/runtime/regenerator/index.js");var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3__);var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(/*! @babel/runtime/helpers/asyncToGenerator */"./node_modules/@babel/runtime/helpers/asyncToGenerator.js");var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4__);function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable});keys.push.apply(keys,symbols)}return keys} function _objectSpread(target){for(var i=1;ithis.length){this_len=this.length} return this.substring(this_len-search.length,this_len)===search}} if(!Object.values)Object.values=function(o){return Object.keys(o).map(function(k){return o[k]})};if(!Array.from){Array.from=function(){var toStr=Object.prototype.toString;var isCallable=function isCallable(fn){return typeof fn==='function'||toStr.call(fn)==='[object Function]'};var toInteger=function toInteger(value){var number=Number(value);if(isNaN(number)){return 0} if(number===0||!isFinite(number)){return number} return(number>0?1:-1)*Math.floor(Math.abs(number))};var maxSafeInteger=Math.pow(2,53)-1;var toLength=function toLength(value){var len=toInteger(value);return Math.min(Math.max(len,0),maxSafeInteger)};return function from(arrayLike){var C=this;var items=Object(arrayLike);if(arrayLike==null){throw new TypeError("Array.from requires an array-like object - not null or undefined")} var mapFn=arguments.length>1?arguments[1]:void undefined;var T;if(typeof mapFn!=='undefined'){if(!isCallable(mapFn)){throw new TypeError('Array.from: when provided, the second argument must be a function')} if(arguments.length>2){T=arguments[2]}} var len=toLength(items.length);var A=isCallable(C)?Object(new C(len)):new Array(len);var k=0;var kValue;while(k0){for(var i=0;icanvas");var $sig_wrap=jQuery(".wpcf7-form-control-signature-wrap");$sig_canvas.eq(i).attr('width',$sig_wrap.width());$sig_canvas.eq(i).attr('height',$sig_wrap.height());cf7signature_resized=1}}} form.$groups.addClass('wpcf7cf-hidden');wpcf7cf_reload_dom(form.$form);for(var i=0;i$repeater.max)$repeater.initial_subs=$repeater.max;var $repeater_sub=$repeater.children('.wpcf7cf_repeater_sub').eq(0);var $repeater_controls=$repeater.children('.wpcf7cf_repeater_controls').eq(0);var $repeater_sub_clone=$repeater_sub.clone();$repeater_sub_clone.find('.wpcf7cf_repeater_sub').addBack('.wpcf7cf_repeater_sub').each(function(){var $this=jQuery(this);var prev_suffix=$this.attr('data-repeater_sub_suffix');var new_suffix=prev_suffix+'__{{repeater_sub_suffix}}';$this.attr('data-repeater_sub_suffix',new_suffix)});$repeater_sub_clone.find('[name]').each(function(){var $this=jQuery(this);var prev_name=$this.attr('name');var new_name=repeater.getNewName(prev_name);var orig_name=$this.attr('data-orig_name')!=null?$this.attr('data-orig_name'):prev_name;$this.attr('name',new_name);$this.attr('data-orig_name',orig_name);$this.closest('.wpcf7-form-control-wrap').addClass(new_name.replace('[]',''))});$repeater_sub_clone.find('.wpcf7cf_repeater,[data-class="wpcf7cf_group"]').each(function(){var $this=jQuery(this);var prev_data_id=$this.attr('data-id');var orig_data_id=$this.attr('data-orig_data_id')!=null?$this.attr('data-orig_data_id'):prev_data_id;var new_data_id=repeater.getNewName(prev_data_id);if(prev_data_id.endsWith('_count')){new_data_id=prev_data_id.replace('_count','__{{repeater_sub_suffix}}_count')} $this.attr('data-id',new_data_id);$this.attr('data-orig_data_id',orig_data_id)});$repeater_sub_clone.find('[id]').each(function(){var $this=jQuery(this);var prev_id=$this.attr('id');var orig_id=$this.attr('data-orig_id')!=null?$this.attr('data-orig_id'):prev_id;var new_id=repeater.getNewName(prev_id);$this.attr('id',new_id);$this.attr('data-orig_id',orig_id)});$repeater_sub_clone.find('[for]').each(function(){var $this=jQuery(this);var prev_for=$this.attr('for');var orig_for=$this.attr('data-orig_for')!=null?$this.attr('data-orig_for'):prev_for;var new_for=repeater.getNewName(prev_for);$this.attr('for',new_for);$this.attr('data-orig_for',orig_for)});var repeater_sub_html=$repeater_sub_clone[0].outerHTML;var $repeater_count_field=$repeater.find('[name='+$repeater.id+'_count]').eq(0);var $button_add=$repeater_controls.find('.wpcf7cf_add').eq(0);var $button_remove=$repeater_controls.find('.wpcf7cf_remove').eq(0);var params={$repeater:$repeater,$repeater_count_field:$repeater_count_field,repeater_sub_html:repeater_sub_html,$repeater_controls:$repeater_controls,$button_add:$button_add,$button_remove:$button_remove,wpcf7cf_settings:wpcf7cf_settings};this.params=params;$button_add.on('click',null,repeater,function(e){var repeater=e.data;repeater.updateSubs(params.$repeater.num_subs+1)});$button_remove.on('click',null,repeater,function(e){var repeater=e.data;repeater.updateSubs(params.$repeater.num_subs-1)});jQuery('> .wpcf7cf_repeater_sub',params.$repeater).eq(0).remove();repeater.updateSubs($repeater.initial_subs);repeater.updateButtons()} Wpcf7cfRepeater.prototype.getNewName=function(previousName){var prev_parts=previousName.split('[');previousName=prev_parts[0];var prev_suff=prev_parts.length>1?'['+prev_parts.splice(1).join('['):'';var newName=previousName+'__{{repeater_sub_suffix}}'+prev_suff;if(previousName.endsWith('_count')){newName=previousName.replace('_count','__{{repeater_sub_suffix}}_count')} return newName};Wpcf7cfRepeater.prototype.updateButtons=function(){var repeater=this;var params=repeater.params;var num_subs=params.$repeater.num_subs;var showButtonRemove=!1;var showButtonAdd=!1;if(params.$repeater.num_subsparams.$repeater.min){showButtonRemove=!0} if(showButtonAdd){params.$button_add.show()}else{params.$button_add.hide()} if(showButtonRemove){params.$button_remove.show()}else{params.$button_remove.hide()} params.$repeater_count_field.val(num_subs)};Wpcf7cfRepeater.prototype.updateSubs=function(subs_to_show){var repeater=this;var params=repeater.params;subs_to_show=subs_to_showparams.$repeater.max?params.$repeater.max:subs_to_show;var subs_to_add=subs_to_show-params.$repeater.num_subs;if(subs_to_add<0){repeater.removeSubs(-subs_to_add)}else if(subs_to_add>0){repeater.addSubs(subs_to_add)}};Wpcf7cfRepeater.prototype.addSubs=function(subs_to_add){var index=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var $=jQuery;var params=this.params;var repeater=this;var form=repeater.form;var $repeater=params.$repeater;var $repeater_controls=params.$repeater_controls;if(subs_to_add+$repeater.num_subs>$repeater.max){subs_to_add=$repeater.max-$repeater.num_subs} var html_str='';for(var i=1;i<=subs_to_add;i++){var sub_suffix=$repeater.num_subs+i;html_str+=params.repeater_sub_html.replace(/\{\{repeater_sub_suffix\}\}/g,sub_suffix).replace(new RegExp('\{\{'+$repeater.orig_id+'_index\}\}','g'),''+sub_suffix+'')} var $html=jQuery(html_str);jQuery('> .wpcf7cf_repeater_sub',$repeater).finish();if(index===null){$html.hide().insertBefore($repeater_controls).animate(wpcf7cf_show_animation,params.wpcf7cf_settings.animation_intime).trigger('wpcf7cf_repeater_added')}else{$html.hide().insertBefore(jQuery('> .wpcf7cf_repeater_sub',$repeater).eq(index)).animate(wpcf7cf_show_animation,params.wpcf7cf_settings.animation_intime).trigger('wpcf7cf_repeater_added')} jQuery('.wpcf7cf_repeater',$html).each(function(){form.repeaters.push(new Wpcf7cfRepeater(jQuery(this),form))});form.$input_repeaters.val(JSON.stringify(form.repeaters.map(function(item){return item.params.$repeater.id})));$repeater.num_subs+=subs_to_add;if(index!==null){repeater.updateSuffixes()} window.wpcf7cf.updateMultistepState(form.multistep);form.updateGroups();form.updateEventListeners();form.displayFields();repeater.updateButtons();$html.on('click','.wpcf7-exclusive-checkbox input:checkbox',function(){var name=$(this).attr('name');$html.find('input:checkbox[name="'+name+'"]').not(this).prop('checked',!1)});if(typeof window.cf7mdInit==="function"){window.cf7mdInit()} return!1};Wpcf7cfRepeater.prototype.updateSuffixes=function(){var $repeater=this.params.$repeater;var num_subs=this.params.$repeater.num_subs;var form=this.form;var orig_id=$repeater.attr('data-orig_data_id');var repeater_id=$repeater.attr('data-id');var repeater_suffix=repeater_id.replace(orig_id,'');var simplifiedDomArray=Object.values(wpcf7cf.get_simplified_dom_model(form.$form[0]));var _loop=function _loop(i){var $sub=jQuery('> .wpcf7cf_repeater_sub',$repeater).eq(i);var newIndex=i+1;var currentSuffix=$sub.attr('data-repeater_sub_suffix');var newSuffix=repeater_suffix+'__'+newIndex;$sub.attr('data-repeater_sub_suffix',newSuffix);$sub.find('.wpcf7cf__'+orig_id).html(newIndex);simplifiedDomArray.forEach(function(el){if(el.suffix!==currentSuffix)return;var newName=el.name.replace(currentSuffix,newSuffix);var pureElName=el.name.replace('[]','');var pureNewName=newName.replace('[]','');jQuery('[name="'+el.name+'"]',$sub).attr('name',newName);jQuery('[id="'+el.name+'"]',$sub).attr('id',newName);jQuery('label[for="'+el.name+'"]',$sub).attr('for',newName);var $nested_repeater=jQuery('[data-id="'+el.name+'"]',$sub);$nested_repeater.attr('data-id',newName);jQuery('.wpcf7-form-control-wrap.'+pureElName,$sub).removeClass(pureElName).addClass(pureNewName);if(el.type==='repeater'){var nested_repeater=form.repeaters.find(function(repeater){return repeater.params.$repeater.get(0)===$nested_repeater.get(0)});if(!nested_repeater)return;nested_repeater.params.repeater_sub_html=wpcf7cf.updateRepeaterSubHTML(nested_repeater.params.repeater_sub_html,currentSuffix,newSuffix,nested_repeater.params.$repeater.parentRepeaters);nested_repeater.updateSuffixes()}})};for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:null;var $=jQuery;var repeater=this;var params=repeater.params;var form=repeater.form;var $repeater=params.$repeater;if($repeater.num_subs-subs_to_remove<$repeater.min){subs_to_remove=$repeater.num_subs-$repeater.min} if(index===null){index=$repeater.num_subs-subs_to_remove} $repeater.num_subs-=subs_to_remove;jQuery('> .wpcf7cf_repeater_sub',$repeater).finish();jQuery('> .wpcf7cf_repeater_sub',$repeater).slice(index,index+subs_to_remove).animate(wpcf7cf_hide_animation,{duration:params.wpcf7cf_settings.animation_intime,done:function done(){var $this=jQuery(this);$this.remove();params.$repeater.trigger('wpcf7cf_repeater_removed');window.wpcf7cf.updateMultistepState(form.multistep);form.updateGroups();form.updateEventListeners();form.displayFields();repeater.updateButtons();if(index!==null){repeater.updateSuffixes()}}});return!1};function Wpcf7cfMultistep($multistep,form){var multistep=this;multistep.$multistep=$multistep;multistep.form=form;multistep.$steps=$multistep.find('.wpcf7cf_step');multistep.$btn_next=$multistep.find('.wpcf7cf_next');multistep.$btn_prev=$multistep.find('.wpcf7cf_prev');multistep.$dots=$multistep.find('.wpcf7cf_steps-dots');multistep.currentStep=0;multistep.numSteps=multistep.$steps.length;multistep.$dots.html('');for(var i=1;i<=multistep.numSteps;i++){multistep.$dots.append("\n
\n
").concat(i,"
\n
").concat(multistep.$steps.eq(i-1).attr('data-title'),"
\n
\n "))} multistep.$btn_next.on('click.wpcf7cf_step',_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee(){var result;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:multistep.$btn_next.addClass('disabled').attr('disabled',!0);_context.next=3;return multistep.validateStep(multistep.currentStep);case 3:result=_context.sent;if(result==='success'){multistep.moveToStep(multistep.currentStep+1)} case 5:case "end":return _context.stop()}}},_callee)})));multistep.form.$form.on('submit.wpcf7cf_step',function(e){if(multistep.currentStep!==multistep.numSteps){multistep.$btn_next.trigger('click.wpcf7cf_step');e.stopImmediatePropagation();return!1}});multistep.$btn_prev.on('click',function(){multistep.moveToStep(multistep.currentStep-1)});multistep.moveToStep(1)} jQuery(document).ajaxComplete(function(e,xhr,settings){if(xhr.hasOwnProperty('responseJSON')&&xhr.responseJSON!=null&&xhr.responseJSON.hasOwnProperty('status')&&xhr.responseJSON.hasOwnProperty('into')&&xhr.responseJSON.status==="mail_success"){jQuery(xhr.responseJSON.into).trigger('reset.wpcf7cf')}});Wpcf7cfMultistep.prototype.validateStep=function(step_index){var multistep=this;var $multistep=multistep.$multistep;var $form=multistep.form.$form;var form=multistep.form;$form.find('.wpcf7-response-output').addClass('wpcf7-display-none');return new Promise(function(resolve){var fd=new FormData();jQuery.each($form.find('[data-id="step-'+step_index+'"] input[type="file"]'),function(index,el){if(!el.files.length)return!0;var file=el.files[0];var fieldName=el.name;fd.append(fieldName,file)});var formdata=$form.serializeArray();jQuery.each(formdata,function(key,input){fd.append(input.name,input.value)});jQuery.ajax({url:wpcf7cf_global_settings.ajaxurl+'?action=wpcf7cf_validate_step',type:'POST',data:fd,processData:!1,contentType:!1,dataType:'json'}).done(function(json){$multistep.find('.wpcf7-form-control-wrap .wpcf7-not-valid-tip').remove();$multistep.find('.wpcf7-not-valid').removeClass('wpcf7-not-valid');$multistep.find('.wpcf7-response-output').remove();$multistep.find('.wpcf7-response-output.wpcf7-validation-errors').removeClass('wpcf7-validation-errors');multistep.$btn_next.removeClass('disabled').attr('disabled',!1);if(!json.success){var checkError=0;jQuery.each(json.invalid_fields,function(index,el){if($multistep.find('input[name="'+index+'"]').length||$multistep.find('input[name="'+index+'[]"]').length||$multistep.find('select[name="'+index+'"]').length||$multistep.find('select[name="'+index+'[]"]').length||$multistep.find('textarea[name="'+index+'"]').length||$multistep.find('textarea[name="'+index+'[]"]').length){checkError=checkError+1;var controlWrap=form.get('.wpcf7-form-control-wrap.'+index);controlWrap.find('.wpcf7-form-control').addClass('wpcf7-not-valid');controlWrap.find('span.wpcf7-not-valid-tip').remove();controlWrap.append(''+el.reason+'')}});resolve('failed');$multistep.parent().find('.wpcf7-response-output').removeClass('wpcf7-display-none').html(json.message);wpcf7.setStatus($form,'invalid');multistep.$steps.trigger('wpcf7cf_step_invalid')}else if(json.success){wpcf7.setStatus($form,'init');resolve('success');return!1}}).fail(function(){resolve('error')}).always(function(){})})};Wpcf7cfMultistep.prototype.moveToStep=function(step_index){var multistep=this;var previousStep=multistep.currentStep;multistep.currentStep=step_index>multistep.numSteps?multistep.numSteps:step_index<1?1:step_index;multistep.$multistep.attr('data-current_step',multistep.currentStep);multistep.$steps.hide();multistep.$steps.eq(multistep.currentStep-1).show().trigger('wpcf7cf_change_step',[previousStep,multistep.currentStep]);var formEl=multistep.form.$form[0];var topOffset=formEl.getBoundingClientRect().top;if(topOffset<0&&previousStep>0){formEl.scrollIntoView({behavior:"smooth"})} multistep.form.updateSummaryFields();window.wpcf7cf.updateMultistepState(multistep)};Wpcf7cfMultistep.prototype.getFieldsInStep=function(step_index){wpcf7cf_reload_dom(this.form.$form);var inStep=!1;return Object.values(wpcf7cf_dom).filter(function(item,i){if(item.type=='step'){inStep=item.val==step_index+''} return inStep&&item.type=='input'}).map(function(item){return item.name})};window.wpcf7cf={updateRepeaterSubHTML:function updateRepeaterSubHTML(html,oldSuffix,newSuffix,parentRepeaters){var oldIndexes=oldSuffix.split('__');oldIndexes.shift();var newIndexes=newSuffix.split('__');newIndexes.shift();var returnHtml=html;if(oldIndexes&&newIndexes&&oldIndexes.length===parentRepeaters.length&&newIndexes.length===parentRepeaters.length){var parentRepeatersInfo=parentRepeaters.map(function(repeaterId,i){return _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({},repeaterId.split('__')[0],[oldIndexes[i],newIndexes[i]])});var length=parentRepeatersInfo.length;var replacements=oldIndexes.map(function(oldIndex,i){return['__'+oldIndexes.slice(0,length-i).join('__'),'__'+newIndexes.slice(0,length-i).join('__')]});for(var i=0;i").concat(find,"<\\/span>"),"").concat(repl,"")])} replacements.forEach(function(_ref3){var _ref4=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_ref3,2),oldSuffix=_ref4[0],newSuffix=_ref4[1];returnHtml=returnHtml.replace(new RegExp(oldSuffix,'g'),newSuffix)})} return returnHtml},initForm:function initForm($forms){$forms.each(function(){var $form=jQuery(this);if($form.hasClass('wpcf7-form')&&!wpcf7cf_forms.some(function(form){return form.$form.get(0)===$form.get(0)})){wpcf7cf_forms.push(new Wpcf7cfForm($form))}})},getWpcf7cfForm:function getWpcf7cfForm($form){var matched_forms=wpcf7cf_forms.filter(function(form){var f1=form.$form.get(0);var f2=$form.get(0);return form.$form.get(0)===$form.get(0)});if(matched_forms.length){return matched_forms[0]} return!1},get_nested_conditions:function get_nested_conditions(conditions,$current_form){wpcf7cf_reload_dom($current_form);var groups=Object.values(wpcf7cf_dom).filter(function(item,i){return item.type==='group'});var sub_conditions=[];for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};var parentGroups=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var parentRepeaters=arguments.length>3&&arguments[3]!==undefined?arguments[3]:[];var type=currentNode.classList&¤tNode.classList.contains('wpcf7cf_repeater')?'repeater':currentNode.dataset["class"]=='wpcf7cf_group'?'group':currentNode.className=='wpcf7cf_step'?'step':currentNode.hasAttribute('name')?'input':!1;var newParentRepeaters=_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentRepeaters);var newParentGroups=_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default()(parentGroups);if(type){var name=type==='input'?currentNode.getAttribute('name'):currentNode.dataset.id;if(type==='repeater'){newParentRepeaters.push(name)} if(type==='group'){newParentGroups.push(name)} if(name.substring(0,6)==='_wpcf7')return{};var original_name=type==='repeater'||type==='group'?currentNode.dataset.orig_data_id:type==='input'?currentNode.getAttribute('data-orig_name')||name:name;var nameWithoutBrackets=name.replace('[]','');var originalNameWithoutBrackets=original_name.replace('[]','');var val=type==='step'?[currentNode.dataset.id.substring(5)]:[];var parentGroup='parent-group';var suffix=nameWithoutBrackets.replace(originalNameWithoutBrackets,'');if(!simplified_dom[name]){simplified_dom[name]={name:name,type:type,original_name:original_name,suffix:suffix,val:val,parentGroups:parentGroups,parentRepeaters:parentRepeaters}} if(type==='input'){if((currentNode.type==='checkbox'||currentNode.type==='radio')&&!currentNode.checked)return{};if(currentNode.multiple&¤tNode.options){simplified_dom[name].val=Object.values(currentNode.options).filter(function(o){return o.selected}).map(function(o){return o.value})}else{simplified_dom[name].val.push(currentNode.value)}}} Array.from(currentNode.children).forEach(function(childNode){var dom=wpcf7cf.get_simplified_dom_model(childNode,simplified_dom,newParentGroups,newParentRepeaters);simplified_dom=_objectSpread(_objectSpread({},dom),simplified_dom)});return simplified_dom},updateMultistepState:function updateMultistepState(multistep){if(multistep==null)return;var stepsData={currentStep:multistep.currentStep,numSteps:multistep.numSteps,fieldsInCurrentStep:multistep.getFieldsInStep(multistep.currentStep)};multistep.form.$input_steps.val(JSON.stringify(stepsData));multistep.$btn_prev.removeClass('disabled').attr('disabled',!1);multistep.$btn_next.removeClass('disabled').attr('disabled',!1);if(multistep.currentStep==multistep.numSteps){multistep.$btn_next.addClass('disabled').attr('disabled',!0)} if(multistep.currentStep==1){multistep.$btn_prev.addClass('disabled').attr('disabled',!0)} var $submit_button=multistep.form.$form.find('input[type="submit"]').eq(0);var $ajax_loader=multistep.form.$form.find('.ajax-loader').eq(0);if(multistep.currentStep==multistep.numSteps){multistep.$btn_next.hide();$ajax_loader.detach().appendTo(multistep.$btn_next.parent());$submit_button.detach().appendTo(multistep.$btn_next.parent());$submit_button.show()}else{$submit_button.hide();multistep.$btn_next.show()} var $dots=multistep.$dots.find('.dot');$dots.removeClass('active').removeClass('completed');for(var step=1;step<=multistep.numSteps;step++){if(step'?'greater than':operator;operator=operator==='<'?'less than':operator;var $field=operator==='function'&&jQuery("[name=\"".concat(inputField.name,"\"]")).eq(0);condition_ok=this.isConditionTrue(inputField.val,operator,if_val,$field);show_group=show_group&&condition_ok} return show_group},isConditionTrue:function isConditionTrue(values,operator){var testValue=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'';var $field=arguments.length>3&&arguments[3]!==undefined?arguments[3]:jQuery();if(!Array.isArray(values)){values=[values]} var condition_ok=!1;var valuesAreEmpty=values.length===0||values.every(function(v){return!v&&v!==0});if(operator==='equals'&&testValue===''&&valuesAreEmpty){return!0} if(operator==='not equals'&&testValue===''&&valuesAreEmpty){return!1} if(valuesAreEmpty){if(operator==='is empty'){condition_ok=!0}}else{if(operator==='not empty'){condition_ok=!0}} var testValueNumber=isFinite(parseFloat(testValue))?parseFloat(testValue):NaN;if(operator==='not equals'||operator==='not equals (regex)'){condition_ok=!0} if(operator==='function'&&typeof window[testValue]=='function'&&window[testValue]($field)){condition_ok=!0} var regex_patt=/.*/i;var isValidRegex=!0;if(operator==='equals (regex)'||operator==='not equals (regex)'){try{regex_patt=new RegExp(testValue,'i')}catch(e){isValidRegex=!1}} for(var i=0;itestValueNumber||operator==='less than'&&valsAreNumbers&&valueNumber=testValueNumber||operator==='less than or equals'&&valsAreNumbers&&valueNumber<=testValueNumber){condition_ok=!0;break}else if(operator==='not equals'&&value===testValue||operator==='not equals (regex)'&®ex_patt.test(value)){condition_ok=!1;break}} return condition_ok},getFormObj:function getFormObj($form){if(typeof $form==='string'){$form=jQuery($form).eq(0)} return wpcf7cf.getWpcf7cfForm($form)},getRepeaterObj:function getRepeaterObj($form,repeaterDataId){var form=wpcf7cf.getFormObj($form);var repeater=form.repeaters.find(function(repeater){return repeater.params.$repeater.attr('data-id')===repeaterDataId});return repeater},getMultiStepObj:function getMultiStepObj($form){var form=wpcf7cf.getFormObj($form);return form.multistep},repeaterAddSub:function repeaterAddSub($form,repeaterDataId){var repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(repeater.params.$repeater.num_subs+1)},repeaterAddSubAtIndex:function repeaterAddSubAtIndex($form,repeaterDataId,index){var repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.addSubs(1,index)},repeaterRemoveSubAtIndex:function repeaterRemoveSubAtIndex($form,repeaterDataId,index){var repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.removeSubs(1,index)},repeaterRemoveSub:function repeaterRemoveSub($form,repeaterDataId){var repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(repeater.params.$repeater.num_subs-1)},repeaterSetNumberOfSubs:function repeaterSetNumberOfSubs($form,repeaterDataId,numberOfSubs){var repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(numberOfSubs)},multistepMoveToStep:function multistepMoveToStep($form,step){var multistep=wpcf7cf.getMultiStepObj($form);multistep.moveToStep(step)},multistepMoveToStepWithValidation:function multistepMoveToStepWithValidation($form,step){return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.mark(function _callee2(){var multistep,result;return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_3___default.a.wrap(function _callee2$(_context2){while(1){switch(_context2.prev=_context2.next){case 0:multistep=wpcf7cf.getMultiStepObj($form);_context2.next=3;return multistep.validateStep(multistep.currentStep);case 3:result=_context2.sent;if(result==='success'){multistep.moveToStep(step)} case 5:case "end":return _context2.stop()}}},_callee2)}))()}};jQuery('.wpcf7-form').each(function(){wpcf7cf_forms.push(new Wpcf7cfForm(jQuery(this)))});jQuery('document').ready(function(){wpcf7cf_forms.forEach(function(f){f.displayFields()})});var old_wpcf7ExclusiveCheckbox=jQuery.fn.wpcf7ExclusiveCheckbox;jQuery.fn.wpcf7ExclusiveCheckbox=function(){return this.find('input:checkbox').on('click',function(){var name=jQuery(this).attr('name');jQuery(this).closest('form').find('input:checkbox[name="'+name+'"]').not(this).prop('checked',!1).eq(0).change()})}}),"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js": /*!*****************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***! \*****************************************************************/ /*! no static exports found */ (function(module,exports){function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i1){for(var i=1;i=0;--i){var entry=this.tryEntries[i];var record=entry.completion;if(entry.tryLoc==="root"){return handle("end")} if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc");var hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev=0;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc){this.complete(entry.completion,entry.afterLoc);resetTryEntry(entry);return ContinueSentinel}}},"catch":function _catch(tryLoc){for(var i=this.tryEntries.length-1;i>=0;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){var record=entry.completion;if(record.type==="throw"){var thrown=record.arg;resetTryEntry(entry)} return thrown}} throw new Error("illegal catch attempt")},delegateYield:function delegateYield(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};if(this.method==="next"){this.arg=undefined} return ContinueSentinel}};return exports}((!1?undefined:_typeof(module))==="object"?module.exports:{});try{regeneratorRuntime=runtime}catch(accidentalStrictMode){Function("r","regeneratorRuntime = r")(runtime)}}.call(this,__webpack_require__(/*! ./../webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(module)))}),"./node_modules/webpack/buildin/global.js": /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ /*! no static exports found */ (function(module,exports){function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)} var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){if((typeof window==="undefined"?"undefined":_typeof(window))==="object")g=window} module.exports=g}),"./node_modules/webpack/buildin/module.js": /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ /*! no static exports found */ (function(module,exports){module.exports=function(module){if(!module.webpackPolyfill){module.deprecate=function(){};module.paths=[];if(!module.children)module.children=[];Object.defineProperty(module,"loaded",{enumerable:!0,get:function get(){return module.l}});Object.defineProperty(module,"id",{enumerable:!0,get:function get(){return module.i}});module.webpackPolyfill=1} return module}}),0: /*!*****************************************************!*\ !*** multi es6-promise-promise ./js/scripts_es6.js ***! \*****************************************************/ /*! no static exports found */ (function(module,exports,__webpack_require__){__webpack_require__(/*! es6-promise-promise */"./node_modules/es6-promise-promise/index.js");module.exports=__webpack_require__(/*! ./js/scripts_es6.js */"./js/scripts_es6.js")}),1: /*!***********************!*\ !*** vertx (ignored) ***! \***********************/ /*! no static exports found */ (function(module,exports){})})